<extend name="Public/base" />

<block name="body">
	<div class="main-title cf">
		<h2>用户分组</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a class="btn" href="{:U('User/addgroup')}">新增分组</a>
        </div>
    </div>
	<!-- 数据列表 -->
    <div class="data-table table-striped">
	<table class="">
    <thead>
        <tr>
		<th class="row-selected"><input class="check-all" type="checkbox"/></th>
		<th>ID</th>
		<th>分组名称</th>
		<th>创建时间</th>
		<th>修改时间</th>
		<th>备注</th>
		<th>操作</th>
		</tr>
    </thead>
    <tbody>
		<notempty name="_list">
		<volist name="_list" id="vo">
		<tr>
            <td><input class="ids" type="checkbox" name="id[]" value="{$vo.gid}" /></td>
			<td>{$vo.gid} </td>
			<td>{$vo.title}</td>
			<td>{$vo.create_time|time_format}</td>
			<td>{$vo.update_time|time_format}</td>
			<td>{$vo.remark}</td>
			<td>
				<a href="{:U('User/index?group_id='.$vo['gid'])}">查看用户</a>
				<a href="{:U('editgroup?gid='.$vo['gid'])}">修改</a>
				<a href="{:U('delgroup?gid='.$vo['gid'])}" class="confirm ajax-get">删除</a>
            </td>
		</tr>
		</volist>
		<else/>
		<td colspan="4" class="text-center"> aOh! 暂时还没有内容! </td>
		</notempty>
	</tbody>
    </table> 
	</div>
    <div class="page">
        {$_page}
    </div>
</block>